// 按需加载自定义组件
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
const createComponents = () => {
  return Components({
    dts: true,
    // 按需加载的文件夹
    dirs: ['src/components'],
    // ElementPlus按需加载
    resolvers: [ElementPlusResolver()],
  })
}
export default createComponents
